<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'adminUserStudentsForm.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<sx:head/>
  </head>
  
  <BODY background="tutu/11.jpg">
  <h3><s:property value="#request.userStudentsTip"/>操作
  </h3>
    <form action=<s:property value="#request.userStudentsTip"/>  method="post"  enctype="multipart/form-data">
   			<input type="hidden" name="pageSize" value="${pageSize}" />
   			<input type="hidden" name="request_locale" value="zh_CN" />
   			
   			<input type="hidden" name="us.avaname" value="${us.avaname}" />
   			<input type="hidden" name="us.avapath" value="${us.avapath}" />
   			<input type="hidden" name="us.signature" value="${us.signature}" />
   			
   			
   			<s:if test="us.uno==0">
   			<h3>增加用户信息</h3>
   			学号:<input type="text" name="us.uno" value=${us.uno }><br>
   			</s:if>
   			<s:else>
   			<h3>修改用户信息</h3>
   			学号:${us.uno }<br>
   			<input type="hidden" name="us.uno" value="${us.uno}" />
   			</s:else>
   			密码:<input type="text" name="us.upass" value=${us.upass }><br>
   			姓名:<input type="text" name="us.uname" value=${us.uname }><br>
   			性别:<select name="us.ssex">  
   		   			
  					<option value="男">男</option>
  					<option value="女">女</option>   
  					<option selected="selected" value="不详">不详</option>   
  					
					</select>  <br>
   			
   			电话:<input type="text" name="us.tel" value=${us.tel }><br>
   			
   			
   			<s:if test="us.uno==0">
   			照片:<input type="file" name="up"  ><br>
   			</s:if>
   			<s:else>
   			照片<img src='<s:property value="us.avapath"/>/<s:property value="us.avaname"/>' style="width: 40px"alt="头像"/><br>
   			修改:<input type="file" name="up"  ><br>
   			</s:else>
   			入学日期:<sx:datetimepicker name="us.admission"  value="%{'2015-12-28 '}"  type="date" displayFormat="yyyy-MM-dd " >
   					</sx:datetimepicker><br>
   				
   			
   			住址:<input type="text" name="us.address" value=${us.address }><br>
   			QQ:<input type="text" name="us.qq" value=${us.qq }><br>
   			
   			
   			
   			
   			<input type="submit" value="确定" style=" background-color: Silver"/>
   			
   			<input type="reset" value="重置" style="">
   		
   		</form>
  </body>
</html>
